package com.dragon.mmochat.message;

import com.dragon.mmochat.MmochatConstant;
import com.skymobi.buffer.SkymobiBuffer;
import com.skymobi.message.SkymobiProtocolMessage;

public class Mmochat_3_14C extends SkymobiProtocolMessage {
	int battleId;
	int roleId;
	byte turn;

	public Mmochat_3_14C() {
		setMsgCode(MmochatConstant.MSGCODE_MMOCHAT_C_3_14);
	}

	@Override
	protected void decodeBody(SkymobiBuffer in) {
		roleId = in.getInt();
		battleId = in.getInt();
		turn = in.get();
	}

	public int getBattleId() {
		return battleId;
	}

	public int getRoleId() {
		return roleId;
	}

	public byte getTurn() {
		return turn;
	}

}
